package com.tangyuan.common.util;

import java.time.LocalDateTime;

public class FileNameUtil {


    public static String getPngName(){
        return getFileNamePrefix() + ".png";
    }

    public static String getMp4Name(){
        return  getFileNamePrefix() + ".mp4";
    }

    public static String getMp3Name(){
        return  getFileNamePrefix() + ".mp3";
    }

    public static String getFileNamePrefix(){
        return LocalDateTime.now().toString() + cn.hutool.core.lang.UUID.fastUUID().toString().substring(8).replaceAll("-", "");
    }
}
